﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KSSModel;
using System.Web.Script.Serialization;

namespace KSSOnline.Controller
{
    public class StatusHelper
    {
        public static List<tblStatus> GetAllStatus()
        {
            using (var dataContext = new KSSDBDataContext())
            {
                var serializer = new JavaScriptSerializer();
                try
                {
                    var status = (from s in dataContext.tblStatus
                                select s ).ToList();

                    return status;
                }
                catch (Exception)
                {
                    return null;
                }

            }
        }
    }

}
